package com.example.demo02.controller.Swagger;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${num}")
    private String num;
    @Value("${name}")
    private String name;
    @GetMapping("/school")
    public String school() {
        return "学号：" + num + "，姓名：" + name;
    }

    @GetMapping("/hello")
    public String hello() {
        return "Hello World，2023309294 杨竣淮";
    }
}
